#define DEBUG
#include <cstdio>
#include <cmath>
#define MAXQ 10000000

using namespace std;

int main() {
#ifdef DEBUG
  freopen("0.in", "r", stdin);
  freopen("0.out", "w", stdout);
#endif

  long long n;
  scanf("%lld", &n);
  static int a[MAXQ];
  for (int i=2; i<=sqrt(n); i++) {
    if (n%i==0) {
      a[0]++;
    }
    for (; n%i==0; n/=i) {
      a[a[0]]++;
    }
  }
  if (n>1) {
    a[++a[0]]++;
  }

  long long ans=1;
  for (int i=1; i<=a[0]; i++) {
    ans = ans*(a[i]*2+1);
  }
  printf("%lld", ans/2+ans%2);

  fcloseall();
}
